<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<meta charset="UTF-8">
<?php
 include("top.php");
?>
<table height="500" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="350" align="center" valign="top" bgcolor="#F5F5F5"><?php include("left.php");?></td>
    <td valign="top" bgcolor="#FFFFFF"><table width="557"  height="15" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><table border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td  bgcolor="#B0E0E6">
            <?php
                $conn = prepare();

                $name=$_POST['username'];
                $resv_info=$_POST['reserved_info'];

                $sql = exectue_sql_statement($conn, "select * from Members where members_name='$name'");
                $info = sqlsrv_fetch_array($sql);

                if($info['reserved_information']!=$resv_info) {
                    echo "<script>alert('预留信息输入错误!');history.back();</script>";
                    exit;
                } else {
            ?>
            <table width="200" height="100" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr bgcolor="#B0E0E6">
                <td height="25" colspan="2"><div align="center">找回密码</div></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td width="76" height="25"><div align="center">昵称：</div></td>
                <td width="124"><div align="left"><?php echo $name;?></div></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="25"><div align="center">密码：</div></td>
                <td height="25"><div align="left"><?php echo $info['members_password'];?></div></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                  <td height="25" colspan="2"><div align="center">
                          <button onclick="location.href='index.php'" type="button">确定</button>
                </div></td>
              </tr>
            </table>
            <?php
              }
            ?>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table></td>
  </tr>
</table>
<?php
 include("bottom.php");
?>